home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
lib
/
c
/
gnulib
/
sun3.md
/
_builtin_New.s
< prev
next >
Wrap
Text File
|
1989-09-24
|
2KB
|
127 lines
.data
.even
.globl ___new_handler
___new_handler:
.long _default_new_handler
.text
LL0:
|#PROC# 022
LF13 = 12
LS13 = 0
LFF13 = 12
LSS13 = 0
LP13 = 12
.data
.text
.globl ___builtin_vec_new
___builtin_vec_new:
|#PROLOGUE# 0
link a6,#-12
|#PROLOGUE# 1
movl a6@(12),d0
addql #1,d0
movl d0,a6@(-8)
tstl a6@(8)
jne L15
mulsl a6@(16),d0
movl d0,sp@-
jbsr ___builtin_new
addqw #4,sp
movl d0,a6@(8)
L15:
movl a6@(8),a6@(-12)
clrl a6@(-4)
jra LY00000
LY00001:
movl a6@(8),sp@-
movl a6@(20),a0
jsr a0@
addqw #4,sp
movl a6@(16),d0
addl d0,a6@(8)
addql #1,a6@(-4)
LY00000:
movl a6@(-4),d0
cmpl a6@(-8),d0
jlt LY00001
movl a6@(-12),d0
unlk a6
rts
|#PROC# 0220
LF21 = 4
LS21 = 0
LFF21 = 4
LSS21 = 0
LP21 = 8
.data
.text
.globl ___set_new_handler
___set_new_handler:
|#PROLOGUE# 0
link a6,#-4
|#PROLOGUE# 1
movl ___new_handler,a6@(-4)
tstl a6@(8)
jne L23
movl #_default_new_handler,a6@(8)
L23:
movl a6@(8),___new_handler
movl a6@(-4),d0
unlk a6
rts
|#PROC# 0220
LF25 = 0
LS25 = 0
LFF25 = 0
LSS25 = 0
LP25 = 12
.data
.text
.globl _set_new_handler
_set_new_handler:
|#PROLOGUE# 0
link a6,#0
|#PROLOGUE# 1
movl a6@(8),sp@-
jbsr ___set_new_handler
addqw #4,sp
unlk a6
rts
|#PROC# 0
.data1
L30:
.ascii "default_new_handler\72 out of memory... aaaiiiiiieeeeeeeeeeeeee!\12\0"
LF27 = 0
LS27 = 0
LFF27 = 0
LSS27 = 0
LP27 = 20
.data
.text
_default_new_handler:
|#PROLOGUE# 0
link a6,#0
|#PROLOGUE# 1
pea 65
pea L30
pea 2
jbsr _write
lea sp@(12),sp
pea -1
jbsr __exit
addqw #4,sp
unlk a6
rts